﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.Timing;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace ALEXFW.BasicModel
{
    public class Exercise : Entity<Guid>
    {
        [Required]
        [DisplayName("测试名称")]
        public string Name { get; set; }

        [Required]
        [DisplayName("组ID")]
        public Guid GroupID { get; set; }

        [Required]
        [DisplayName("发布人")]
        public Guid Issuser { get; set; }

        [Required]
        [DisplayName("发布时间")]
        [DisableDateTimeNormalization]
        public DateTime CreateTime { get; set; }

        [Required]
        [DisplayName("结束时间")]
        [DisableDateTimeNormalization]
        public DateTime EndTime { get; set; }

        [Required]
        [DisplayName("发布状态")]
        public bool PublishStatus { get; set; }

        public Exercise()
        {
            CreateTime = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:MM"));
        }
    }
}
